// 懒加载组件
const Home = () => import("@/pages/Home")
const Login = () => import("@/pages/Login")
const Search = () => import("@/pages/Search")
const Register = () => import("@/pages/Register")
const Detail = () => import("@/pages/detail");
const AddCartSuccess = () => import("@/pages/AddCartSuccess");
const ShopCart = () => import("@/pages/ShopCart");
const Test = () => import("@/pages/Test")


export default [
    {
        path: "/",
        component: Home
    },
    {
        path: "/login",
        component: Login,
        meta:{
            isHiddenFooter:true,  
        }
    },
    {
        path: "/search",
        component: Search
    },
    {
        path: "/register",
        component: Register,
        meta:{
            isHiddenFooter:true,  
        }
    },
    {
        path:"/detail/:id",
        component:Detail
    },
    {
        path:"/addcart_success",
        component:AddCartSuccess
    },
    {
        path:"/shopcart",
        component:ShopCart
    },
    {
        path: "/test",
        component: Test
    },
    
]